package com.huazai.juc.cec.thread.august.fourteen;

import lombok.extern.slf4j.Slf4j;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Seon
 * @date 2022/8/14 19:18
 */
@Slf4j
public class Seon {
    public static void main(String[] args) {
        String[] resources = {
                "温","pig","^(*￣(oo)￣)^","欺","粪",
                "负我","佳","hello world","年上","文化",
                "立","别","没有","没","还愿"
        };
        String answer = "06B1235D9";
        List<Integer> list = new ArrayList<>();

        for (int i = 0; i < answer.length(); i++) {
            char temp = answer.charAt(i);
            if (temp <= '9' && temp >= '0') {
                list.add(temp - '0');
            } else {
                list.add(temp - 'A' + 9);
            }
        }

        list.forEach(index -> {
            System.out.print(resources[index]);
        });
        System.out.println();
    }
}
